package com.yidu.boss.sys.domain;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author
 */
public class Custodian implements Serializable {
    private String custodianid;

    private String custodianname;

    private BigDecimal custodianfee;

    private String decs;

    private String remark1;

    private Integer flag;

    private String remark3;

    private static final long serialVersionUID = 1L;

    public String getCustodianid() {
        return custodianid;
    }

    public void setCustodianid(String custodianid) {
        this.custodianid = custodianid;
    }

    public String getCustodianname() {
        return custodianname;
    }

    public void setCustodianname(String custodianname) {
        this.custodianname = custodianname;
    }

    public BigDecimal getCustodianfee() {
        return custodianfee;
    }

    public void setCustodianfee(BigDecimal custodianfee) {
        this.custodianfee = custodianfee;
    }

    public String getDecs() {
        return decs;
    }

    public void setDecs(String decs) {
        this.decs = decs;
    }

    public String getRemark1() {
        return remark1;
    }

    public void setRemark1(String remark1) {
        this.remark1 = remark1;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public String getRemark3() {
        return remark3;
    }

    public void setRemark3(String remark3) {
        this.remark3 = remark3;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Custodian other = (Custodian) that;
        return (this.getCustodianid() == null ? other.getCustodianid() == null : this.getCustodianid().equals(other.getCustodianid()))
                && (this.getCustodianname() == null ? other.getCustodianname() == null : this.getCustodianname().equals(other.getCustodianname()))
                && (this.getCustodianfee() == null ? other.getCustodianfee() == null : this.getCustodianfee().equals(other.getCustodianfee()))
                && (this.getDecs() == null ? other.getDecs() == null : this.getDecs().equals(other.getDecs()))
                && (this.getRemark1() == null ? other.getRemark1() == null : this.getRemark1().equals(other.getRemark1()))
                && (this.getFlag() == null ? other.getFlag() == null : this.getFlag().equals(other.getFlag()))
                && (this.getRemark3() == null ? other.getRemark3() == null : this.getRemark3().equals(other.getRemark3()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCustodianid() == null) ? 0 : getCustodianid().hashCode());
        result = prime * result + ((getCustodianname() == null) ? 0 : getCustodianname().hashCode());
        result = prime * result + ((getCustodianfee() == null) ? 0 : getCustodianfee().hashCode());
        result = prime * result + ((getDecs() == null) ? 0 : getDecs().hashCode());
        result = prime * result + ((getRemark1() == null) ? 0 : getRemark1().hashCode());
        result = prime * result + ((getFlag() == null) ? 0 : getFlag().hashCode());
        result = prime * result + ((getRemark3() == null) ? 0 : getRemark3().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", custodianid=").append(custodianid);
        sb.append(", custodianname=").append(custodianname);
        sb.append(", custodianfee=").append(custodianfee);
        sb.append(", decs=").append(decs);
        sb.append(", remark1=").append(remark1);
        sb.append(", flag=").append(flag);
        sb.append(", remark3=").append(remark3);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}